package cn.kgc.springboot.service.impl;

import cn.kgc.springboot.entity.Role;
import cn.kgc.springboot.mapper.RoleMapper;
import cn.kgc.springboot.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: mosin
 * @version: v1.0  2022/8/12
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;
    @Override
    public Role selectByRoleId(Integer id) {
        Role role = roleMapper.selectByRoleId(id);
        return role;
    }
}
